<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    let arrNums = [5, 2, 8, 10, 3, 7]
    let newNums = []
    for (let i = 0; i < arrNums.length; i++) {
      if (arrNums[i] % 2 !== 0) {
        newNums.push(arrNums[i])
      }
    }
    console.log(newNums)
  </script>
</body>
</html>